package com.nn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nn.pojo.Role;


import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    Role deleteById(Integer roleId, Integer rightsId, Integer level);

    void deleteRoleRightsById(Integer roleId, Integer rightsId);

    void deleteRoleRights(Integer roleId, List<Integer> rightsIds);

    List<Integer> findRightsIdList(Integer roleId);
}
